<template>
  <router-view />
</template>
<script>
export default {
  setup() {},
  mounted() {
    window.addEventListener("unload", this.saveState);
  },
  methods: {
    saveState() {
      localStorage.setItem("state", JSON.stringify(this.$store.state));
    },
  },
};
</script>
<style lang="scss"></style>
